package com.shfl.servermanage.logic.mapper;

import com.shfl.servermanage.logic.bean.SysServerSite;
import com.shfl.servermanage.logic.model.response.ServerSitePageResponse;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;
import java.util.Map;

@Repository
public interface SysServerSiteMapper {
    int deleteByPrimaryKey(Long id);

    int insert(SysServerSite record);

    int insertSelective(SysServerSite record);

    SysServerSite selectByPrimaryKey(Long id);

    SysServerSite selectByPrimaryKeyWithLogicalDelete(@Param("id") Long id, @Param("andLogicalDeleted") boolean andLogicalDeleted);

    int updateByPrimaryKeySelective(SysServerSite record);

    int updateByPrimaryKeyWithBLOBs(SysServerSite record);

    int updateByPrimaryKey(SysServerSite record);

    int batchInsert(@Param("list") java.util.List<SysServerSite> list);

    int batchInsertSelective(@Param("list") java.util.List<SysServerSite> list, @Param("selective") SysServerSite.Column... selective);

    int logicalDeleteByPrimaryKey(Long id);

    List<ServerSitePageResponse> findPage(Map<String, Object> objectMap);

    List<ServerSitePageResponse> findList(Map<String, Object> objectMap);
}